Page({
  data: {},
  onLoad: function(options) {
    var _this = this
    _this.setData({
      name: options.name,
      id:options.id
    })
  },
  onReady: function() {},
  onShow: function() {},
  onHide: function() {},
  onUnload: function() {},
  onPullDownRefresh: function() {},
  onReachBottom: function() {},
  onShareAppMessage: function() {},
  onSettingPage(e) {
    var type = e.currentTarget.id
    if (type ==1){
      wx.navigateTo({
        url: '/pages/onShopInfoPassword/onShopInfoPassword?id='+this.data.id,
      })
    }else{
      wx.navigateTo({
        url: '/pages/upDataInfoPhone/upDataInfoPhone?id=' + this.data.id,
      })
    }
   
  }
})